<%- include('../header.html')%>
<style>
    #listTBody td {
        vertical-align: middle;
    }

    #listTBody td img {
        width: 100px;
        height: 80px;
    }

    .btn.mini {
        margin-left: 5px;
    }

    .portlet-title {
        border: 0 !important;
    }
</style>
<div class="page-content">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="page-title">
                </h3>
                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home"></i>
                        <a id="mainModule">商家管理</a>
                        <i class="icon-angle-right"></i>
                    </li>
                </ul>
            </div>
        </div>
        <div id="dashboard">
            <div id="list_container" class="row-fluid">
                <div class="span12">
                    <div class="portlet box blue tabbable">
                        <div class="portlet-title">
                            <div class="portlet-title">
                                <h4 class="span10">
                                    <i class="icon-reorder"></i>
                                    <span class="hidden-480">用户列表</span>
                                    &nbsp;
                                </h4>
                                <a id="btnAddUser" href="/user/edit" class="btn red start"
                                   style="margin-top: -6px;color: #ffffff;text-decoration: none">
                                    <i class="icon-plus icon-white"></i>
                                    <span>添加用户</span>
                                </a>
                            </div>
                        </div>
                        <div class="portlet-body" style="margin-top: -5px;">
                            <table class="table table-striped table-bordered table-advance table-hover">
                                <thead>
                                <tr>
                                    <th><i class="icon-bookmark"> 序号</i></th>
                                    <th><i class="icon-bookmark"> 用户名</i></th>
                                    <th><i class="icon-th-large"></i> 角色</th>
                                    <th><i class="icon-th-large"></i> 创建时间</th>
                                    <th><i class="icon-th-large"></i> 密码</th>
                                    <th><i class="icon-th-large"></i> 状态</th>
                                    <th><i class="icon-pencil"></i> 操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <% for(var i=0;i<users.length;i++){%>
                                <tr>
                                    <td><%=(i+1)%></td>
                                    <td><%=users[i].AccountName%></td>
                                    <td><%=users[i].Role%></td>
                                    <td><%=users[i].CreateTime%></td>
                                    <td><%=users[i].AccountPass%></td>
                                    <td>
                                        <% if(users[i].AccountState == 1) {%>
                                        <span style="color: green;font-weight: bolder">正常</span>
                                        <%} else if(users[i].AccountState == 2) {%>
                                        <span style="color: red;font-weight: bolder">冻结</span>
                                        <%}%>
                                    </td>
                                    <td><a href="/user/edit?id=<%=users[i].Id%>" class="btn mini blue btnSellerDetail">
                                        <i class="icon-list-alt"></i>详情</a></td>
                                </tr>
                                <%}%>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<%- include('../footer.html')%>
<script type="text/javascript" src="../javascripts/utils/layer/layer.js"></script>
<script type="text/javascript" src="../javascripts/config.js"></script>
